/*
 * @Description: 
 * @Author: 赵大壮
 * @Date: 2022-07-04 09:50:51
 * @LastEditTime: 2022-07-04 14:12:29
 * @LastEditors: 赵大壮
 */
class DZModelQuesiton {

    /**
     * 问卷问题ID
     */
    id = '';

    /**
     * 问卷问题名称
     */
    name = '';

    /**
     * 输入方式：1-手动输入，2-单选，3-多选
     */
    inputType = 1;

    /**
     * 选项内容（逗号分隔）
     */
    selectContent = '';

    contentList = [];

    init() {
        this.id = '';
        this.name = '';
        this.inputType = 1;
        this.selectContent = '';
        this.contentList = [];
    }

    get inputTypeStr() {
        let str = "";
        switch (this.inputType) {
            case 1:
                str = '手动输入';
                break;
            case 2:
                str = '单选';
                break;
            case 3:
                str = '多选';
                break;
            default:
                str = '其他';
                break
        }
        return str;
    }
}
export default DZModelQuesiton;